]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/volume: Show OSD volume slider on plugging unplugging headphones
authorSundeep Mediratta <smedius@gmail.com>
Wed, 6 Nov 2024 02:52:53 +0000 (21:52 -0500)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 10 Nov 2024 23:28:48 +0000 (00:28 +0100)
OSD Volume popup appears when a user connects or disconnects
earphones/headphones/headsets.

Shows and warns the user that the volume may be set to high
or low when headphones are connected or disconnected.

This is a nice bit of feedback to the user that something has
changed, and something that other platforms do.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7931
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3531>

js/ui/status/volume.js

index 330476358772de800281e6103c11488b61e72ead..7e5032607ceb67ce9d57cf199efff31f687fb39f 100644 (file)
@@ -346,6 +346,7 @@ class OutputStreamSlider extends StreamSlider {
 
         this._hasHeadphones = hasHeadphones;
         this._updateIcon();
+        this.showOSD();
     }
 
     _updateIcon() {